<template>
  <!-- 看板一般性容器：router配置里传title 和 param就行 -->
  <base-breadcrumb :title="$route.meta.title">
    
      <BaseIframe
       :scale="true"
        hostUrl="https://dashboard.cscecxn.com:8443/"
        preToken="?code"
        :needFgs="needFgs"
        :src="src"
      />
  
  </base-breadcrumb>
</template>

<script>
import BaseIframe from '@/components/BaseIframe'

export default {
  components: {
    BaseIframe
  },
  data() {
    return {
      needFgs: false,
      src: `bigscreenv3/viewer/${this.$route.meta.param}`
    }
  },
  watch: {
    $route() {
      this.src = `bigscreenv3/viewer/${this.$route.meta.param}`
    }
  },
  mounted() {},
  beforeRouteUpdate(to,from,next){
    this.src =  `bigscreenv3/viewer/${this.$route.meta.param}`
    console.log("组件【@/views/bi/other】被复用,新的 src = 【 "+ src + "】")
  },
  methods: {}
}
</script>
